synchronized(s) {
    doSomething(s)
}